package com.party.core.dao.write.crowdfund;

import com.party.core.dao.write.BaseWriteDao;
import com.party.core.model.crowdfund.Support;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 众筹支持数据写入
 * Created by wei.li
 *
 * @date 2017/2/16 0016
 * @time 17:08
 */
@Repository
public interface SupportWriteDao extends BaseWriteDao<Support> {
    void deleteByProjectId(@Param(value = "projectId") String projectId);

    /**
     * @param supportIds 支持者IDS
     * @return
     * @Author yifeng
     * @Description 批量更新支持者状态为1
     * @Date 13:50 2019/4/12
     **/
    boolean batchUpdate(@Param(value = "supportIds") List<String> supportIds, @Param(value = "payStatus") Integer payStatus);
}
